Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace IsDisposable with Dispose + Refactor #27

Merged
merged 12 commits into from
Nov 4, 2024

Conversation

mariusz96
Copy link
Contributor

The PR for #26.

@mariusz96 mariusz96 changed the title Replace MiddlewareResult.IsDisposable with MiddlewareResult.Dispose + RefactorDispose Replace IsDisposable with Dispose + Refactor Oct 26, 2024
@mariusz96 mariusz96 force-pushed the dispose branch 2 times, most recently from 0673e5b to 334eab8 Compare October 26, 2024 21:10
@@ -24,7 +24,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\PipelineNet\PipelineNet.csproj" PrivateAssets="compile;contentfiles;build;analyzers" />
<ProjectReference Include="..\PipelineNet\PipelineNet.csproj" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this as it forces me to install both packages separately.

Finally(typeof(TFinally));
where TFinally : IAsyncFinally<TParameter, TReturn>
{
_finallyType = typeof(TFinally);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is performance optimization. The finally type is already checked in where contraint.

src/PipelineNet/AsyncBaseMiddlewareFlow.cs Show resolved Hide resolved
@ipvalverde ipvalverde merged commit bfdf35c into ipvalverde:master Nov 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants